﻿/*----------------------------------------------------------------
    // Copyright (C) 2009 江苏华招网
    // 版权所有。 
    // 作者：庄金冬 
    //
    // 文件名：InvoiceDistribution.cs
    // 文件功能描述：有关发票配送详细视图实体类
    // 创建标识：庄金冬2009-05-04 13:53:02
    //
    // 修改标识：
    // 修改描述：
    //
    // 修改标识：
    // 修改描述：
    //
    // 审核人：
    // 审核时间：
    // 审核说明：
 //----------------------------------------------------------------*/

using System;
using System.Collections.Generic;

using System.Text;
using HZ.DrugTrade.Model.Enum;

namespace HZ.DrugTrade.Model.View
{
    /// <summary>
    /// 发票配送详细视图实体类
    /// </summary>
    [Serializable]
    public class InvoiceDistribution
    {

        /// <summary>
        /// 发票流水号      
        /// </summary>
        public string InvoiceSerialID
        {
            get;
            set;
        }

        /// <summary>
        /// 配送流水号
        /// </summary>
        public string DistributionSerialID
        {
            get;
            set;
        }

        /// <summary>
        /// 发票号
        /// </summary>
        public string InvoiceID
        {
            get;
            set;
        }

        /// <summary>
        /// 发票时间
        /// </summary>
        public System.DateTime? InvoiceTime
        {
            get;
            set;
        }

        /// <summary>
        /// 配送数量
        /// </summary>
        public int? DistributionCount
        {
            get;
            set;
        }

        /// <summary>
        /// 发票总金额
        /// </summary>
        public decimal? TotalAmount
        {
            get;
            set;
        }

        /// <summary>
        /// 发票审核状态（0未审核1审核通过2审核不通过）
        /// </summary>
        public int? AuditStatus
        {
            get;
            set;
        }

        /// <summary>
        /// 医疗机构名称
        /// </summary>
        public string HospitalName
        {
            get;
            set;
        }

        /// <summary>
        /// 审核时间
        /// </summary>
        public System.DateTime? AuditTime
        {
            get;
            set;
        }

        /// <summary>
        /// 审核人
        /// </summary>
        public string AuditPerson
        {
            get;
            set;
        }

        /// <summary>
        /// 配送企业编号
        /// </summary>
        public string CompanyID_PS
        {
            get;
            set;
        }

        /// <summary>
        /// 医疗机构编号
        /// </summary>
        public string HospitalID
        {
            get;
            set;
        }

        /// <summary>
        ///审核 未通过原因
        /// </summary>
        public string NoPassReason
        {
            get;
            set;
        }   

        /// <summary>
        /// 余量
        /// </summary>
        public int? Balance
        {
            get;
            set;
        }

        /// <summary>
        /// 采购单明细编号
        /// </summary>
        public string OrderDetailID
        {
            get;
            set;
        }

        /// <summary>
        /// 配送单入库数量
        /// </summary>
        public int? Dis_WarehouseCount
        {
            get;
            set;
        }

        /// <summary>
        /// 配送单配送量
        /// </summary>
        public int? Dis_DistributeCount
        {
            get;
            set;
        }

        /// <summary>
        /// 采购单明细入库量
        /// </summary>
        public int? WarehouseCount
        {
            get;
            set;
        }

        /// <summary>
        /// 采购单明细已经入库量
        /// </summary>
        public int? DistributeCount
        {
            get;
            set;
        }

        /// <summary>
        /// 五笔码
        /// </summary>
        public string WBCode
        {
            get;
            set;
        }

        /// <summary>
        /// 拼音码
        /// </summary>
        public string PinyinCode
        {
            get;
            set;
        }

        /// <summary>
        /// 配送批号
        /// </summary>
        public string BatchRecordID
        {
            get;
            set;
        }

        /// <summary>
        /// 配送单是否已开发票
        /// </summary>
        public bool? IsInvoice
        {
            get;
            set;
        }

        /// <summary>
        /// 配送单入库时间
        /// </summary>
        public System.DateTime? WarehouseTime
        {
            get;
            set;
        }

        /// <summary>
        /// 配送单状态
        /// </summary>
        public int? DistributeState
        {
            get;
            set;
        }

        /// <summary>
        /// 配送时间
        /// </summary>
        public System.DateTime? DistributeTime
        {
            get;
            set;
        }

        /// <summary>
        /// 采购单明细退货数量
        /// </summary>
        public int? ReturnCount
        {
            get;
            set;
        }

        /// <summary>
        /// 状态标识:0未确认;1已提交;2已确认（已确认的采购单，就不可以再修改了）
        /// </summary>
        public int? OrderDetailState
        {
            get;
            set;
        }

        /// <summary>
        /// 采购单明细执行时间
        /// </summary>
        public System.DateTime? ExecuteTime
        {
            get;
            set;
        }

        /// <summary>
        /// 采购单明细金额
        /// </summary>
        public decimal? Amount
        {
            get;
            set;
        }

        /// <summary>
        /// 采购价格
        /// </summary>
        public decimal? Price
        {
            get;
            set;
        }

        /// <summary>
        /// 采购单数量
        /// </summary>
        public int? PurchaseCount
        {
            get;
            set;
        }

        /// <summary>
        /// 当前节点号
        /// </summary>
        public string CurrentNode
        {
            get;
            set;
        }

        /// <summary>
        /// 配送企业名称
        /// </summary>
        public string CompanyName_PS
        {
            get;
            set;
        }

        /// <summary>
        /// 采购项目名称
        /// </summary>
        public string ProjectName
        {
            get;
            set;
        }

        /// <summary>
        /// 目录来源:0正常添加;1临时采购
        /// </summary>
        public int? SortSource
        {
            get;
            set;
        }

        /// <summary>
        /// 是否流程中
        /// </summary>
        public bool? IsFlowing
        {
            get;
            set;
        }

        /// <summary>
        /// 中标价格
        /// </summary>
        public decimal? ProcurePrice
        {
            get;
            set;
        }

        /// <summary>
        /// 医疗机构采购目录是否启用
        /// </summary>
        public bool? IsUsing
        {
            get;
            set;
        }

        /// <summary>
        /// 采购项目编号
        /// </summary>
        public string ProjectID
        {
            get;
            set;
        }

        /// <summary>
        /// 采购目录编号
        /// </summary>
        public string ProcureCatalogID
        {
            get;
            set;
        }

        /// <summary>
        /// 父分类编号
        /// </summary>
        public string ParentSortID
        {
            get;
            set;
        }

        /// <summary>
        /// 投标企业编号
        /// </summary>
        public string CompanyID_TB
        {
            get;
            set;
        }

        /// <summary>
        /// 生产企业编号
        /// </summary>
        public string CompanyID_SC
        {
            get;
            set;
        }

        /// <summary>
        /// 分类编号
        /// </summary>
        public string SortID
        {
            get;
            set;
        }

        /// <summary>
        /// 剂型编号
        /// </summary>
        public string MedicineModelID
        {
            get;
            set;
        }

        /// <summary>
        /// 产品编号
        /// </summary>
        public string ProductID
        {
            get;
            set;
        }

        /// <summary>
        /// 包装
        /// </summary>
        public string Pack
        {
            get;
            set;
        }

        /// <summary>
        /// 转换系数
        /// </summary>
        public int? Factor
        {
            get;
            set;
        }

        /// <summary>
        /// 产品名称称
        /// </summary>
        public string GoodsName
        {
            get;
            set;
        }

        /// <summary>
        /// 投标企业名称
        /// </summary>
        public string CompanyName_TB
        {
            get;
            set;
        }

        /// <summary>
        /// 生产企业名称
        /// </summary>
        public string CompanyName_SC
        {
            get;
            set;
        }

        /// <summary>
        /// 分类名称
        /// </summary>
        public string SortName
        {
            get;
            set;
        }

        /// <summary>
        /// 单位
        /// </summary>
        public string Unit
        {
            get;
            set;
        }

        /// <summary>
        /// 规格
        /// </summary>
        public string Outlookc
        {
            get;
            set;
        }

        /// <summary>
        /// 剂型名
        /// </summary>
        public string MedicineModelName
        {
            get;
            set;
        }

        /// <summary>
        /// 产品名称
        /// </summary>
        public string ProductName
        {
            get;
            set;
        }

        /// <summary>
        /// 商品编号
        /// </summary>
        public string GoodsID
        {
            get;
            set;
        }

        /// <summary>
        /// 地区编号
        /// </summary>
        public string AreaID
        {
            get;
            set;
        }

        /// <summary>
        /// 采购单制定时间
        /// </summary>
        public System.DateTime? PlanTime
        {
            get;
            set;
        }

        /// <summary>
        /// 采购单计划制定人
        /// </summary>
        public string PlanPerson
        {
            get;
            set;
        }

        /// <summary>
        /// 采购单结束时间
        /// </summary>
        public System.DateTime? PlanEndTime
        {
            get;
            set;
        }

        /// <summary>
        /// 采购单结束时间
        /// </summary>
        public System.DateTime? StartTime
        {
            get;
            set;
        }

        /// <summary>
        /// 采购单名称
        /// </summary>
        public string OrderName
        {
            get;
            set;
        }

        /// <summary>
        /// 采购单编号
        /// </summary>
        public string OrderID
        {
            get;
            set;
        } 
        /// <summary>
        /// 回款单ID
        /// </summary>
        public string InvoicePaySerialID { get; set; }

        /// <summary>
        /// 流程编号
        /// </summary>
        public string FlowID
        {
            get;
            set;
        }
        /// <summary>
        /// 产品材质
        /// </summary>
        public string Material
        {
            get;
            set;
        }

        /// <summary>
        /// 产品类别 
        /// </summary>
        public string QualityLevel
        {
            get;
            set;
        }

        /// <summary>
        /// 流程名称
        /// </summary>
        public string FlowName
        {
            get;
            set;
        }
        public int? Settlecount { get; set; } //可结算数量
        public string SettleAmount { get; set; } //可结算金额
    }
}